package cn.circle.mobile.util;

/**
 * 用于放置微信常量
 * 
 * @author 
 * @date 
 */
public class WeChatProperties {

	// 自定义TOKEN
	public static final String TOKEN = "wzl123456";

	// appID
	public static final String APP_ID = "wx7ac2216a39078247";

	// appsecret
	public static final String APP_SECRET = "72b62f663e2f317f2584217fe9b1f47f";

	// 获取access_token 定时器开关
	public static final boolean OPEN_CLOSE = true;

	// 获取access_token
	public final static String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

	// 拉取用户信息地址
	public final static String GET_USER_INFO_URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

	// 微信网页授权是通过OAuth2.0
	public final static String GET_OAUTH_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + APP_ID
			+ "&redirect_uri=http://water.haihuogo.com/OAuth&response_type=code&scope=snsapi_base&state=1#wechat_redirect";

	// 微信网页授权是通过OAuth2.0 token
	public final static String GET_OAUTH_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?"
			+ "appid=APPID" + "&secret=SECRET&" + "code=CODE&grant_type=authorization_code";

	// 微信网页授权是通过OAuth2.0 拉取客户信息
	public final static String GET_USERINFO = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

	// 微信网页授权是通过OAuth2.0 刷新access_token
	public final static String REFRESH_TOKEN = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN";
	
	//微信群发接口
	public final static String MSG_TO_ALL_URL = "https://api.weixin.qq.com/cgi-bin/message/mass/sendall?access_token=ACCESS_TOKEN";
	
	//视频mediaId
	public final static String VIDEO_MEDIA_ID = "cfFNMQ4HfFr_JwZXFKN1nAJZ5RJda5nehFzBYsAK8yQz5q0zUx6szJKnyxlPDwoX";
	
	
}
